<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title><g:layoutTitle default="Grails"/></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon">
		<link rel="apple-touch-icon" href="${resource(dir: 'images', file: 'apple-touch-icon.png')}">
		<link rel="apple-touch-icon" sizes="114x114" href="${resource(dir: 'images', file: 'apple-touch-icon-retina.png')}">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}" type="text/css">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'mobile.css')}" type="text/css">
                <link rel="stylesheet" href="${resource(dir: 'css/south-street/', file: 'jquery-ui-1.8.20.custom.css')}" type="text/css">
                
                <link rel="stylesheet" href="${resource(dir: 'js/fancybox/', file: 'jquery.fancybox-1.3.4.css')}" type="text/css">
                
                <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery172.js')}"></script>
                <script type="text/javascript" src="${resource(dir: 'js', file: 'jqueryui1820.js')}"></script>
                <script type="text/javascript" src="${resource(dir: 'js/fancybox/', file: 'jquery.fancybox-1.3.4.js')}"></script>
                <script type="text/javascript" src="${resource(dir: 'js', file: 'application.js')}"></script>
                <script type="text/javascript" src="${resource(dir: 'js', file: 'application.js')}"></script>
                <script type="text/javascript" src="${resource(dir: 'fusioncharts/', file: 'FusionCharts.js')}"></script>
                <script type="text/javascript" src="${resource(dir: 'js/extjs-4.1.0/', file: 'ext-all.js')}"></script>
                <script type="text/javascript" src="${resource(dir: 'js/extjs-4.1.0/', file: 'ext.js')}"></script>
                <script type="text/javascript" src="https://www.google.com/jsapi"></script>
		<g:layoutHead/>
        <r:layoutResources />
	</head>
	<body>
          <g:if test="${session['usuario']}">
            <div align="right" style="padding: 2px; font-size: 10px; background-color: #ABBF78;"><g:link controller="usuario" action="logout">Cerrar Sesión</g:link></div>
          </g:if>
          <div id="grailsLogo" role="banner"><g:link controller="home"><img src="${resource(dir: 'images', file: 'icontrol_logo.png')}" alt="Grails"/></g:link></div>
          
          <g:if test="${session['usuario']}">
          <div class="nav" role="navigation">
            <ul>
              <li><g:link class="list" controller="usuario" action="list">Usuarios</g:link></li>
              <li><g:link class="list" controller="proyecto" action="list">Proyectos</g:link></li>
              <li><g:link class="list" controller="cliente" action="list">Clientes</g:link></li>
              <li><g:link class="list" controller="perfil" action="list">Perfiles</g:link></li>
              <li><g:link class="list" controller="estado" action="list">Estados</g:link></li>
              <li><g:link class="list" controller="prioridad" action="list">Prioridades</g:link></li>
            <li><g:link class="list" controller="facturar" action="lista">Facturas</g:link></li>
                <li><g:link class="list" controller="calificacion" action="create">Calificar</g:link></li>
            </ul>
          </div>
          </g:if>
            
          <div style="height: 10px;"></div>
          <g:layoutBody/>
          <div class="footer" role="contentinfo"></div>
          <div id="spinner" class="spinner" style="display:none;"><g:message code="spinner.alt" default="Loading&hellip;"/></div>
          <g:javascript library="application"/>
        <r:layoutResources />
	</body>
</html>